Ext.onReady(function() {

	var xmlStore = new Ext.data.Store({
        proxy : new Ext.data.HttpProxy({
			url: "../../resources/xml/wms.xml"
        })
        , 	reader : new Ext.viz.XmlReader({
               namespaceResolver : function (prefix) {
              		var ns = {
							"xlink" : "http://www.opengis.net/wfs"
						,	"gml": "http://www.opengis.net/gml"	
						,   "gbif": "http://www.gbif.org"
             		};
              return ns[prefix] || null;
            },
               record : 'featureMember'
        } , [
				{name: 'id', mapping: '@id'}      
			,	{name: 'data_provider_id', mapping: '@data_provider_id'}
        	])
		,	autoLoad: true
    });
	var grid= new Ext.grid.GridPanel({
			title: "Grid Test"
		,	renderTo: "mainpanel"
        ,	store: xmlStore 
        ,	width: 1000
        ,	columns: [{
		            	header: "id"
		            ,	width: 200
		            ,	dataIndex: "id"
	        	} 
				,{
		            	header: "data_provider_id"
		            ,	width: 200
		            ,	dataIndex: "data_provider_id"
	        	} 
			]
	});

});

